<?php /* Smarty version 2.6.12, created on 2008-10-30 14:00:17
         compiled from main/login_form.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'default', 'main/login_form.tpl', 15, false),)), $this); ?>
<?php func_load_lang($this, "main/login_form.tpl","lbl_login,lbl_password,err_invalid_login,msg_err_antibot,lbl_submit,lbl_recover_password,txt_new_account_msg,txt_create_account_msg"); ?><?php if ($this->_tpl_vars['config']['Security']['use_https_login'] == 'Y' && $this->_tpl_vars['usertype'] == 'C'):  $this->assign('form_url', $this->_tpl_vars['https_location']);  else:  $this->assign('form_url', $this->_tpl_vars['current_location']);  endif; ?>
<form action="<?php echo $this->_tpl_vars['form_url']; ?>
/include/login.php" method="post" name="errorform">
<input type="hidden" name="<?php echo $this->_tpl_vars['XCARTSESSNAME']; ?>
" value="<?php echo $this->_tpl_vars['XCARTSESSID']; ?>
" />
<input type="hidden" name="is_remember" value="<?php echo $this->_tpl_vars['is_remember']; ?>
" />

<table>
<tr> 
	<td height="10" width="78" class="FormButton"><?php echo $this->_tpl_vars['lng']['lbl_login']; ?>
</td>
	<td width="10" height="10"><font class="Star">*</font></td>
	<td width="282" height="10"><input type="text" name="username" size="30" value="<?php echo ((is_array($_tmp=@$this->_config[0]['vars']['default_login'])) ? $this->_run_mod_handler('default', true, $_tmp, @$this->_tpl_vars['username']) : smarty_modifier_default($_tmp, @$this->_tpl_vars['username'])); ?>
" /></td>
</tr>
<tr> 
	<td height="10" width="78" class="FormButton"><?php echo $this->_tpl_vars['lng']['lbl_password']; ?>
</td>
	<td width="10" height="10"><font class="Star">*</font></td>
	<td width="282" height="10"><input type="password" name="password" size="30" maxlength="64" value="<?php echo $this->_config[0]['vars']['default_password']; ?>
" />
<?php if ($this->_tpl_vars['active_modules']['Simple_Mode'] != "" && $this->_tpl_vars['usertype'] != 'C' && $this->_tpl_vars['usertype'] != 'B'): ?>
<input type="hidden" name="usertype" value="P" />
<?php else: ?>
<input type="hidden" name="usertype" value="<?php echo $this->_tpl_vars['usertype']; ?>
" />
<?php endif; ?>
<input type="hidden" name="redirect" value="<?php echo $this->_tpl_vars['redirect']; ?>
" />
<input type="hidden" name="mode" value="login" />
</td>
</tr>
<tr> 
	<td height="10" width="78" class="FormButton"></td>
	<td width="10" height="10">&nbsp;</td>
	<td width="282" height="10" class="ErrorMessage"><?php if ($this->_tpl_vars['main'] == 'login_incorrect'):  echo $this->_tpl_vars['lng']['err_invalid_login'];  endif; ?></td>
</tr>
<?php if ($this->_tpl_vars['active_modules']['Image_Verification'] && $this->_tpl_vars['show_antibot']['on_login'] == 'Y' && $this->_tpl_vars['login_antibot_on'] && $this->_tpl_vars['main'] != 'disabled'):  $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "modules/Image_Verification/spambot_arrest.tpl", 'smarty_include_vars' => array('mode' => 'advanced','id' => $this->_tpl_vars['antibot_sections']['on_login'])));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<tr>
	<td height="10" width="78" class="FormButton"></td>
	<td width="10" height="10">&nbsp;</td>
	<td width="282" height="10" class="ErrorMessage"><?php if ($this->_tpl_vars['antibot_err']):  echo $this->_tpl_vars['lng']['msg_err_antibot'];  endif; ?></td>
</tr>
<?php endif; ?>

<tr> 
<td height="10" width="78" class="FormButton"></td>
<td width="10" height="10" class="FormButton">&nbsp;</td>
<td width="282" height="10">
<?php if ($this->_tpl_vars['js_enabled']):  $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "buttons/submit.tpl", 'smarty_include_vars' => array('href' => "javascript:document.errorform.submit()",'js_to_href' => 'Y','type' => 'input','style' => 'button')));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
  else:  $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "submit_wo_js.tpl", 'smarty_include_vars' => array('value' => $this->_tpl_vars['lng']['lbl_submit'])));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
  endif; ?>
</td>
</tr>

</table>

</form>

<div align="right"><?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "buttons/button.tpl", 'smarty_include_vars' => array('href' => "help.php?section=Password_Recovery",'button_title' => $this->_tpl_vars['lng']['lbl_recover_password'])));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?></div>
<?php if ($this->_tpl_vars['usertype'] == 'C' && ! $this->_tpl_vars['is_flc']): ?>
<br /><?php echo $this->_tpl_vars['lng']['txt_new_account_msg']; ?>

<?php elseif ($this->_tpl_vars['usertype'] == 'P'): ?>
<br /><?php echo $this->_tpl_vars['lng']['txt_create_account_msg']; ?>

<?php endif; ?>